﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="TimKiemMember.aspx.cs" Inherits="TimKiemMember" %>
<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
 
    </style>
</asp:Content>
<asp:Content ID="ContentTimKiem" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" />
    <asp:label runat="server" ID="lbComtent">
    <div id="khungtimkiem">
        <div>
            <table width="100%">
                <tr>
                    <td style="text-align:right !important;">
                        <asp:TextBox runat="server" ID="chuoitimkiem" Width="125px" MaxLength="50" autocomplete="off"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender
                        runat="server" 
                        BehaviorID="AutoCompleteEx"
                        ID="autoComplete1" 
                        TargetControlID="chuoitimkiem"
                        ServicePath="AutoComplete.asmx" 
                        ServiceMethod="GetCompletionList"
                        MinimumPrefixLength="1" 
                        CompletionInterval="1000"
                        EnableCaching="true"
                        CompletionSetCount="20"
                        CompletionListCssClass="autocomplete_completionListElement" 
                        CompletionListItemCssClass="autocomplete_listItem" 
                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                        DelimiterCharacters=";, :"
                        ShowOnlyCurrentWordInCompletionListItem="true" >
                        <Animations>
                            <OnShow>
                                <Sequence>
                                    <%-- Make the completion list transparent and then show it --%>
                                    <OpacityAction Opacity="1" />
                                    <HideAction Visible="true" />
                                    
                                    <%--Cache the original size of the completion list the first time
                                        the animation is played and then set it to zero --%>
                                    <ScriptAction Script="
                                        // Cache the size and setup the initial size
                                        var behavior = $find('AutoCompleteEx');
                                        if (!behavior._height) {
                                            var target = behavior.get_completionList();
                                            behavior._height = target.offsetHeight - 2;
                                            target.style.height = '0px';
                                        }" />
                                    
                                    <%-- Expand from 0px to the appropriate size while fading in --%>
                                    <Parallel Duration=".4">
                                        <FadeIn />
                                        <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx')._height" />
                                    </Parallel>
                                </Sequence>
                            </OnShow>
                            <OnHide>
                                <%-- Collapse down to 0px and fade out --%>
                                <Parallel Duration=".4">
                                    <FadeOut />
                                    <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
                                </Parallel>
                            </OnHide>
                        </Animations>
                    </ajaxToolkit:AutoCompleteExtender>
            
                    </td>
                    <td style="width:10%;">
                        <asp:Button ID="Search" runat="server" Text="Search" OnClick="Search_Click" UseSubmitBehavior="true"/>
                    </td>
                </tr>
            </table>
        </div>
        <div id="khungketqua">
            <asp:label runat="server" ID="lbContentTimKiem" >
            <table border="10" cellpadding="6" cellspacing="1" width="100%" style="background-color:White;">
                <tr>
                    <td style="text-align:center; color:Blue;"><h1 style="text-align:center;">Kết Quả Tìm Kiếm</h1></td>
                </tr>
                <tr>
                    <td>
                        <table id="Detail" width="80%">
                            <tr>
                                <td style="text-align:left" >
                                Tên đăng nhập :
                                </td>
                                <td style="width:60%;" align="left">
                                    <asp:Label ID="TenDangNhap" runat="server" Width="100%" MaxLength="50" ></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >
                                    Họ tên :
                                </td>
                                
                                <td>
                                    <asp:Label ID="HoTen" runat="server" Width="100%" MaxLength="35" ></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Ngày sinh :</td>
                                
                                <td>
                                   
                                    <asp:Label ID="NgaySinh" runat="server" Width="100%" Height="25px" Font-Bold="true"></asp:Label>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Email :</td>
                                
                                <td>
                                    <asp:Label ID="Email" runat="server" Width="100%" MaxLength="50"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Số điện thoại :</td>
                                <td>
                                    <asp:Label ID="SoDienThoai" runat="server" Width="100%" MaxLength="11"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >CMND :</td>
                                <td>
                                    <asp:Label ID="CMND" runat="server" Width="100%" MaxLength="10"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Địa chỉ :</td>
                                <td>
                                    <asp:Label ID="DiaChi" runat="server" TextMode="MultiLine" Width="100%"></asp:Label>    
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </asp:label>
        </div>
        <div>
            <table width="100%">
               <tr>
                <td>
                    <asp:Button ID="Delete" runat="server" Text="Delete" OnClick="Delete_Click" UseSubmitBehavior="true" Width="90px"/>
                </td>
               </tr>
            </table>
        </div>
        <asp:label runat="server" ID="lbComtentDelete">
        </asp:label>
    </div>
    </asp:label>
</asp:Content>
